package com.ruoyi.sysem.domain;

import lombok.Data;

@Data
public class UserCredit {

    private Integer age;
    private Integer cid;
    private String credit;//是否是失信人
    private String identityCardSh;
    private String socialSh;//社保
    private String drivSh;//驾驶证
    private String propertySh;//房产证
    private Integer did;
    private Integer degree;//学位
    private Integer creditScore=0;//信用额度

    public Integer addCreditScore(Integer score){
           this.creditScore+=score;
        return creditScore;
    }

    @Override
    public String toString() {
        return "UserCredit{" +
                "age=" + age +
                ", cid=" + cid +
                ", credit=" + credit +
                ", identityCardSh='" + identityCardSh + '\'' +
                ", socialSh='" + socialSh + '\'' +
                ", drivSh=" + drivSh +
                ", propertySh=" + propertySh +
                ", degree=" + degree +
                ", creditScore=" + creditScore +
                '}';
    }
}
